#ifndef POSIX_SHARED_MEMORY_H
#define POSIX_SHARED_MEMORY_H

#include <string>
#include <sys/mman.h>

class POSIX_SharedMemory
{
  public:
    POSIX_SharedMemory(const std::string & name,long size);
    virtual ~POSIX_SharedMemory();
    char* GetMemory();
  private:
    int fd;
    char* memory;
};

#endif
